package cn.java63.biz2;

import cn.java63.biz.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAnoAop {
    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("spring-aopano.xml");
        UserServiceAno userService=ac.getBean(UserServiceAno.class);
        User user=new User(1000L,"laowang","dddd","13690251299","!123");
        boolean r= userService.add(user);
        System.out.println("保存的结果是："+r);
    }
}
